package com.urick.statemachine;

/**
 * Design Theories: 状态机异常
 * <a href=""></a>
 *
 * @author Rick 2023/4/4 17:40
 * Email: rickwork@163.com
 * Wechat: yy3076815642
 * QQ: 3076815642
 * @since 1.0
 */
public class StateMachineAssert {
    public static void assertTrue(boolean condition, String message) {
        if (!condition) {
            throw new IllegalStateException(message);
        }
    }

    public static void assertFalse(boolean condition, String message) {
        if (condition) {
            throw new IllegalStateException(message);
        }
    }
}
